package com.xiangge.zuoye.Demo2;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/18 15:12
 * @description
 */
public class Student {
    private String id;
    private String name;
    private String sex;
    private double height;
    private int age;

    public Student() {
    }

    public Student(String id, String name, String sex, double height, int age) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.height = height;
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void getInfo(){
        System.out.println("学员编号:"+id+
                ",姓名："+name+
                ",性别："+sex+
                ",身高："+height+
                ",年龄："+age);
    }
}
